var str = '德芙纵享丝滑';
var arr = str.split(''); // 使用空字符串分割成字符数组
console.log(arr);
for (var i = 0; i < arr.length; i++) {
    arr[i] = '<' + arr[i] + '>';
}
console.log(arr.join(''));
console.log('----------------------------------')

var str1 = 'Rome was not built in a day';
var arr1 = str1.split('');// 分割成单字符数组
console.log('str1长度是:', str1.length);
console.log('长度是:', arr1.length);
console.log('----------------------------------')
var arr2 = str1.split('');
arr2.reverse();
var str2 = arr2.join('');
console.log(str2);


